package pattern.nullObject;

import lombok.Data;

/**
 * 真实的雇员类
 *
 * @author sun.ye
 * @since 2020-07-17 09:12
 */
@Data
public class EmployeeImpl implements Employee {
    private String name;
    private Integer age;

    @Override
    public boolean isTimeToPay() {
        return age > 20;
    }

    @Override
    public void pay() {

    }
}